public class Simulator {
    public void playSound(Animal animal) {
        System.out.println("动物种类: " + animal.getAnimalName());
        animal.cry();
    }
}